Gets the encoding attribute for the document 獲取文檔的編碼方式屬性。
The encoding attribute specifies the preferred encoding to be used Encoding屬性指定了適用的編碼方式。
If that is null , then the encoding attribute of the dom stream to be written is used 如果該設(shè)置為空,那么使用將要寫入的dom流的編碼屬性
You will get this error message if a character in the xml document does not match the encoding attribute 如果xml文檔中有一個字符與編碼屬性不匹配,你就會收到這個錯誤信息。
Will store the correct encoding information - which matches the actual encoding of the string - in the encoding attribute of the xml declaration 將在xml聲明的編碼屬性中存儲正確的編碼信息(它與字符串的實際編碼相匹配) 。